package kr.ac.kongju.gedl.item.vo;

import java.io.Serializable;

import kr.ac.kongju.gedl.cmmn.vo.CommonVO;


public class ItemXmlVO  extends CommonVO{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7525248751560966521L;
	private String xmlId="";   //아이템XmlId item@id
	private ItemInfoVO itemInfo=new ItemInfoVO();   //아이템정보ID
	private String title="";       //아이템Xml 표제
	private String type="";        //구분 원문|표점|번역
	private String subject="";     //xml단위 분류정보
	private String frontXml="";    //서지 item/front
	private String xml="";         //xml /
	private String fileName="";    //xml파일명
	private String registedDate="";//등록일
	private String register="";    //등록자
	private String modifiedDate="";//수정일
	private String modifier="";    //수정자
	private int levelCount=0;     //기사건수
	
	public ItemXmlVO() {
		super();
	}
	public ItemXmlVO(ItemInfoVO itemInfo) {
		super();
		this.itemInfo = itemInfo;
	}
	
	public ItemXmlVO(String xmlId) {
		super();
		this.xmlId = xmlId;
	}
	public String getXmlId() {
		return xmlId;
	}
	public void setXmlId(String xmlId) {
		this.xmlId = xmlId;
	}
	public ItemInfoVO getItemInfo() {
		return itemInfo;
	}
	public void setItemInfo(ItemInfoVO itemInfo) {
		this.itemInfo = itemInfo;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getFrontXml() {
		return frontXml;
	}
	public void setFrontXml(String frontXml) {
		this.frontXml = frontXml;
	}
	public String getXml() {
		return xml;
	}
	public void setXml(String xml) {
		this.xml = xml;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getRegistedDate() {
		return registedDate;
	}
	public void setRegistedDate(String registedDate) {
		this.registedDate = registedDate;
	}
	public String getRegister() {
		return register;
	}
	public void setRegister(String register) {
		this.register = register;
	}
	public String getModifiedDate() {
		return modifiedDate;
	}
	public void setModifiedDate(String modifiedDate) {
		this.modifiedDate = modifiedDate;
	}
	public String getModifier() {
		return modifier;
	}
	public void setModifier(String modifier) {
		this.modifier = modifier;
	}
	
	public int getLevelCount() {
		return levelCount;
	}
	public void setLevelCount(int levelCount) {
		this.levelCount = levelCount;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((xmlId == null) ? 0 : xmlId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ItemXmlVO other = (ItemXmlVO) obj;
		if (xmlId == null) {
			if (other.xmlId != null)
				return false;
		} else if (!xmlId.equals(other.xmlId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ItemXmlVo [fileName=");
		builder.append(fileName);
		builder.append(", frontXml=");
		builder.append(frontXml);
		builder.append(", itemInfo=");
		builder.append(itemInfo);
		builder.append(", xmlId=");
		builder.append(xmlId);
		builder.append(", modifier=");
		builder.append(modifier);
		builder.append(", register=");
		builder.append(register);
		builder.append(", subject=");
		builder.append(subject);
		builder.append(", title=");
		builder.append(title);
		builder.append(", type=");
		builder.append(type);
		builder.append(", xml=");
		builder.append(xml);
		builder.append("]");
		return builder.toString();
	}
}
